package org.nvframe.event.eventtype;

import org.nvframe.entity.Entity;
import org.nvframe.event.AbstractEvent;
import org.nvframe.event.EventListener;
import org.nvframe.event.EventService.EVENT_TYPE;

/**
 * 
 * @author Nik Van Looy
 */
public class MotionEvent extends AbstractEvent {

	private static Class<? extends EventListener> listener = MotionListener.class;
	
	private Entity entity;

	public MotionEvent(Entity entity) {
		// set the event type
		eventType = EVENT_TYPE.MOTION;
		
		// set event-specific properties
		this.entity = entity;
	}

	public Entity getEntity() {
		return entity;
	}
	
	@Override
	protected Class<? extends EventListener> getListener() {
		return listener;
	}
}
